const userinfoKey = 'userinfo'			// 存储用户信息
const tokenKey = 'token'				// 存储访问令牌

export default {
	setUserinfo(data) {
		uni.setStorageSync(userinfoKey, data)
	},
	getUserinfo() {
		return uni.getStorageSync(userinfoKey)
	},
	setToken(token) {
		uni.setStorageSync(tokenKey, token)
	},
	getToken() {
		return uni.getStorageSync(tokenKey)
	}
	
}